﻿<UserControl x:Class="Controls.VolumeControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
			 x:Name="ThisControl"
             d:DesignHeight="300" Width="60">
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Border BorderThickness="{Binding BorderThickness, ElementName=ThisControl}" BorderBrush="{Binding BorderBrush, ElementName=ThisControl}">
			<TextBlock x:Name="VolumeLevel" Padding="2" Grid.Row="0" Text="0%" HorizontalAlignment="Stretch" TextAlignment="Center" Visibility="{Binding VolumeLevelVisibility, ElementName=ThisControl}" Background="Black" Foreground="#FF00FF23" FontFamily="Quartz MS" />
		</Border>
		<Slider x:Name="VolumeSlider" HorizontalAlignment="Center" Grid.Row="1" Maximum="1" LargeChange="0.1" SmallChange="0.01" TickFrequency="0.1" Value="{Binding Volume, ElementName=ThisControl, Mode=TwoWay}" VerticalContentAlignment="Stretch" Style="{DynamicResource VolumeFaderStyle}" Orientation="Vertical" Height="Auto" Margin="14,0" VerticalAlignment="Stretch"/>
		<Border Grid.Row="2" BorderThickness="{Binding BorderThickness, ElementName=ThisControl}" BorderBrush="{Binding BorderBrush, ElementName=ThisControl}">
			<TextBlock Text="{Binding LabelText, ElementName=ThisControl}" Padding="2" HorizontalAlignment="Stretch" TextAlignment="Center" Visibility="{Binding VolumeLabelVisibility, ElementName=ThisControl}" Background="Black" Foreground="#FF00FF23" FontFamily="Quartz MS" TextTrimming="CharacterEllipsis"/>
		</Border>
	</Grid>
</UserControl>
